 <meta charset="utf-8">
 <div class="box box-primary" id="app_authPermission_edit" > 
             <div class="box-header with-border">
              <h3 class="box-title">组织机构信息编辑</h3>
            </div> 
            <div class="box-body" style="overflow: hidden; max-width: 1200px" > 
           	 <form role="form"  id="entityEditForm" class="form-inline">
			   <div class="form-group">
                <label for="name" class="control-label">组织机构名称</label>
                  <input type="text" id="name"  name="name"  v-model="name" class="form-control" required="required">
                </div> 
                
                  <div class="form-group">
                <label for="code" class="control-label">组织机构编码</label>
                 <input type="text" id="code"  name="code"  v-model="code" class="form-control" required="required" placeholder="请输入组织机构编码">
                </div>
                <div class="form-group" id="isCultivateUnit_div">
				     <km-select id="isCultivateUnit" code="SF" vmodel="isCultivateUnit" name="isCultivateUnit" label="是否培养单位"></km-select>
				</div>
                
					<div class="form-group" id="roleIds_div">
				     <km-select id="roleIds" host="baseServer" url="/auth/authRole/loadRoleList" vmodel="roleIds" name="roleIds" label="产生岗位的角色" multiple="multiple"></km-select>
				</div>
				  <div class="form-group" id="appId_div">
					<km-select id="appId" host="baseServer" url="/auth/authApp/loadAPPList" vmodel="appId" name="appId"  label="所属应用"></km-select>
				</div> 
				
                 <div class="form-group" id="enabled_div">
				     <km-select id="enabled" code="SF" vmodel="enabled" name="enabled" label="是否启用"></km-select>
				</div>
				
			
                
                   <div class="form-group" id="telPhone_div">
                <label for="telPhone" class="control-label">联系方式</label>
                  <input type="text" id="telPhone"  name="telPhone"  v-model="telPhone" class="form-control" placeholder="联系方式">
                </div>
                
                   <div class="form-group" id="address_div">
                <label for="address" class="control-label">地址</label>
                  <input type="text" id="address"  name="address"  v-model="address" class="form-control" placeholder="地址">
                </div>
                    <div class="form-group" id="postCode_div">
                <label for="postCode" class="control-label">邮编</label>
                  <input type="text" id="postCode"  name="postCode"  v-model="postCode" class="form-control" placeholder="邮编">
                </div>
                
                      <div class="form-group" id="fax_div">
                <label for="fax" class="control-label">传真</label>
                  <input type="text" id="fax"  name="fax"  v-model="fax" class="form-control" placeholder="传真">
                </div>
              <div class="form-group" id="description_div">
                  <label for="description" class="control-label" >描述</label>
                <input type="text" id="description" name="description" v-model="description" class="form-control" placeholder="描述">
                </div>
                
                <div class="form-group" id="remark_id">
                   <label for="remark" class="control-label">备注</label>
                  <input type="text" id="remark"  name="remark"  v-model="remark" class="form-control">
                </div>
                
                </form>
                </div>
            <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancle">取消</button>
                 <button type="button" class="btn btn-info pull-right"  v-on:click="submitForm">提交</button>
              </div> 
               
<script type="text/javascript">
var param=zfesLayerEditDg.getLayerParam();
var pId=param.id;
var vm = new Vue({
        el: '#app_authPermission_edit',
         methods: {
        	 submitForm: function () {
        	    	if($("#entityEditForm").valid()){
        	    		var formdata=zfesUtil.formToJson($("#entityEditForm"));
        	    		 var url=host_auth+"sys/sysOrganization/addSysOrganization?parentId="+pId; 
        	    		zfesAjax.ajaxTodo(url,formdata, function(data){
        	    			 alertSwal.successText(data.message);
        	    			 layer.close(layer.index);
        	    		})
        	    	}
        	    },
        	    cancle:function(){
        	    	 layer.close(layer.index);
        	    }
        }
    })
 </script>
</div>